//
//  ACAssetsPickerViewController.h
//  AlbumFetch
//
//  Created by 黄志明 on 2017/2/6.
//  Copyright © 2017年 黄志明. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ACAssetsPickerControllerDelegate;
@interface ACAssetsPickerController : UINavigationController

@property (nonatomic, weak) id <ACAssetsPickerControllerDelegate> pickerDelegate;

// 是否支持选择图片 default:YES
@property (nonatomic, assign) BOOL allowPickPhoto;

// 是否支持选择视频 default:NO
@property (nonatomic, assign) BOOL allowPickVideo;

// 是否支持选择音频 default:NO
@property (nonatomic, assign) BOOL allowPickAudio;

// 最大可选图片数量 默认是9张
@property (nonatomic, assign) NSUInteger maxPhotoPickCount;

// 最大可选视频数量 默认是1
@property (nonatomic, assign) NSUInteger maxVideoPickCount;

// 最大可选音频数量 默认是1
@property (nonatomic, assign) NSUInteger maxAudioPickCount;

// 用户已经选择的图片
@property (nonatomic, strong) NSMutableArray *selectedAssetModels;

- (instancetype)initWithMaxPhotoCount:(NSUInteger)maxPhotoCount delegate:(id<ACAssetsPickerControllerDelegate>)delegate NS_DESIGNATED_INITIALIZER;

// 公共方法，取消
- (void)cancelPickAssets;


@end


@protocol ACAssetsPickerControllerDelegate <NSObject>

@optional
- (void)assetsPickerController:(ACAssetsPickerController *)pickerController didFinishPickAssets:(NSArray *)assetModels;

@end
